x86/hvm: pv-on-hvm: fix de/assert_irq checks
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Thu, 12 May 2011 08:15:05 +0000 (09:15 +0100)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Thu, 12 May 2011 08:15:05 +0000 (09:15 +0100)
commitb5bf4eedb426810079ca7821497e3ef838277a91
tree752cce23bb706faa1727d968eb7feb4ba177b3d1
parentcfc6cab903b7fecb931b373b35012a259665973b
x86/hvm: pv-on-hvm: fix de/assert_irq checks

The checks in assert_irq and deassert_irq to distinguish interrupts
that have been remapped onto event channels from the others that have
to be injected using the emulated lapic are wrong.

Fix the condition checks using the convenient hvm_domain_use_pirq
function.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
xen/arch/x86/hvm/irq.c